<html>
<head>
<title>Notifications</title>
<script type="text/javascript" src="js/native_core.js"></script>
<script type="text/javascript" src="js/ajax.js"></script>
<script type="text/javascript" src="js/app.js"></script>
<script type="text/javascript">
nativeSetPageTitle("Notifications");
function generate_page_title(page)
{
if(page==null || page=="") return "";
var temp_str=page.split('.');
var page_title="";
for(var i=0;i<temp_str[0].length;i++)
{
var ascii=temp_str[0].charCodeAt(i);
if(ascii>=65 && ascii<=90) {page_title=page_title.concat(" ");}
if(i==0) { page_title=String.fromCharCode(temp_str[0].charCodeAt(0)-32);}
else
page_title=page_title.concat(temp_str[0].charAt(i));
}
return page_title;
}

function loadPage(page,args)
{
nativeSetPageTitle(generate_page_title(page));
document.getElementById("content").innerHTML="";
var xmlhttp=loadAjax();
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4)
    {
    document.getElementById("content").innerHTML=xmlhttp.responseText;
    }
  }
if(args!="" || args!=null) args+="&rand="+Math.random();
else args="rand="+Math.random();
xmlhttp.open("GET",page+"?"+args,true);
xmlhttp.send();
}
</script>
</head>
<body>
<center>
<?php require("coreMenu.php"); ?>
</center>
<table border="0" width="100%">
<tr><td width="3%"><div id="content1"></div></td><td><center><div id="content2"></div></center></td><td width="3%"><div id="content3"></div></td></tr></table>
<script type="text/javascript">
pingServer();
</script><br/><br/><br/><br/>
<font size="1">
Use the next and back buttons to access other messages and use the down button to minimize the app. The app will automatically popup when notifications arrive. To create notifications, visit <a href="showmessage.php" target=_blank>http://hobbycoders.com/notifapp/showmessage.php</a></font>
<table border="0" width="100%">
<tr><td width="3%"><div id="content11"></div></td><td><center><div id="content21"></div></center></td><td width="3%"><div id="content31"></div></td></tr></table>
</body>
</html>